Fix for SMB sharing in Mountain Lion

After searching for a solution to this problem for ages I finally came across the answer on the Oceanside Coding website.
I used Lingon, see downloads page for link, to install the plist file as it saves messing about with permissions in Terminal.
Just create a new Users Daemon file.

Lingon settings

Change to Expert mode and enter the following code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.me.restart_smb</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-c</string>
<string>sleep 60;touch "/Library/Preferences/SystemConfiguration/com.apple.smb.server.plist"</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>

Lingon code

Click Save and enter your Admin password. The plist file will now be installed.
To enable this to work just log out and back in and you should find that SMB file sharing is now working.